add if __name__ == '__main__' to scripts

pull/191/head
Chris Veilleux 2019-06-27 17:48:47 -05:00
parent 61a7b6b7a0
commit d8b5cc311b
3 changed files with 6 additions and 3 deletions

View File

@ -79,4 +79,5 @@ class SkillDisplayUpdater(SeleneScript):
self.log.info("updated {} skills".format(skill_count))
SkillDisplayUpdater().run()
if __name__ == '__main__':
SkillDisplayUpdater().run()

View File

@ -21,4 +21,5 @@ class PartitionApiMetrics(SeleneScript):
api_metrics_repo.remove_by_date(self.args.date)
PartitionApiMetrics().run()
if __name__ == '__main__':
PartitionApiMetrics().run()

View File

@ -44,4 +44,5 @@ class UpdateDeviceLastContact(SeleneScript):
return last_contact_ts
UpdateDeviceLastContact().run()
if __name__ == '__main__':
UpdateDeviceLastContact().run()