forked from Hay1tsme/artemis
dbutils: add command to show versions
This commit is contained in:
parent
3c385f505b
commit
858b101a36
@ -333,3 +333,8 @@ class Data:
|
|||||||
|
|
||||||
if not failed:
|
if not failed:
|
||||||
self.base.set_schema_ver(latest_ver, game)
|
self.base.set_schema_ver(latest_ver, game)
|
||||||
|
|
||||||
|
def show_versions(self) -> None:
|
||||||
|
all_game_versions = self.base.get_all_schema_vers()
|
||||||
|
for ver in all_game_versions:
|
||||||
|
self.logger.info(f"{ver['game']} -> v{ver['version']}")
|
||||||
|
@ -85,4 +85,7 @@ if __name__ == "__main__":
|
|||||||
elif args.action == "cleanup":
|
elif args.action == "cleanup":
|
||||||
data.delete_hanging_users()
|
data.delete_hanging_users()
|
||||||
|
|
||||||
|
elif args.action == "version":
|
||||||
|
data.show_versions()
|
||||||
|
|
||||||
data.logger.info("Done")
|
data.logger.info("Done")
|
||||||
|
Loading…
Reference in New Issue
Block a user