add if __name__ == '__main__' to scripts
parent
61a7b6b7a0
commit
d8b5cc311b
|
@ -79,4 +79,5 @@ class SkillDisplayUpdater(SeleneScript):
|
|||
self.log.info("updated {} skills".format(skill_count))
|
||||
|
||||
|
||||
SkillDisplayUpdater().run()
|
||||
if __name__ == '__main__':
|
||||
SkillDisplayUpdater().run()
|
||||
|
|
|
@ -21,4 +21,5 @@ class PartitionApiMetrics(SeleneScript):
|
|||
api_metrics_repo.remove_by_date(self.args.date)
|
||||
|
||||
|
||||
PartitionApiMetrics().run()
|
||||
if __name__ == '__main__':
|
||||
PartitionApiMetrics().run()
|
||||
|
|
|
@ -44,4 +44,5 @@ class UpdateDeviceLastContact(SeleneScript):
|
|||
return last_contact_ts
|
||||
|
||||
|
||||
UpdateDeviceLastContact().run()
|
||||
if __name__ == '__main__':
|
||||
UpdateDeviceLastContact().run()
|
||||
|
|
Loading…
Reference in New Issue