Skip to content

Commit

Permalink
Fix: (#183) scripts> litnJjwq;q
Browse files Browse the repository at this point in the history
  • Loading branch information
Cj-bc committed Sep 14, 2018
1 parent 337ab5b commit f4fcc77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scripts/apply_ramdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def login(client, secret_id, rresp):
client = client()


id_list = load_id_json_file(Path(__file__).parent.parent/ Path('cards/test_users.json'))
id_list = load_id_json_file(Path(__file__).parent.parent /
Path('cards/test_users.json'))
users = [i for i in id_list if i['authority'] == 'normal']

lotteries = client.get('/lotteries/available')
Expand Down
3 changes: 2 additions & 1 deletion scripts/draw_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def login(client, secret_id, rresp):
client = client()


id_list = load_id_json_file(Path(__file__).parent.parent / Path('cards/test_users.json'))
id_list = load_id_json_file(Path(__file__).parent.parent /
Path('cards/test_users.json'))
admin = next(i for i in id_list if i['authority'] == 'admin')

token = login(client, admin["secret_id"], '')["token"]
Expand Down

0 comments on commit f4fcc77

Please sign in to comment.