Blame src/python-problem/examples/list_all_example.py
|
Packit |
8ea169 |
import problem
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
for prob in problem.list(auth=True):
|
|
Packit |
8ea169 |
print(prob)
|
|
Packit |
8ea169 |
if hasattr(prob, 'username'):
|
|
Packit |
8ea169 |
print('Problem belongs to {0}'.format(prob.username))
|