Skip to content

Commit cf5343b

Browse files
committed
Use oh_id in update_data command
1 parent 32a2585 commit cf5343b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/management/commands/update_data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def handle(self, *args, **options):
1212
users = DataSourceMember.objects.all()
1313
for github_user in users:
1414
if github_user.last_updated < (arrow.now() - timedelta(days=4)):
15+
print("Updating user {}".format(github_user.user.oh_id))
1516
oh_id = github_user.user.oh_id
1617
process_github.delay(oh_id)
1718
else:
18-
print("didn't update {}".format(github_user.moves_id))
19+
print("Did not update {}".format(github_user.user.oh_id))

0 commit comments

Comments
 (0)