GalaxyTab commited on
Commit
f5baf8e
·
1 Parent(s): 900b8d5

logic error fix

Browse files
Files changed (1) hide show
  1. chat_application/main.py +2 -2
chat_application/main.py CHANGED
@@ -58,8 +58,8 @@ class datasetHandler():
58
 
59
  def list_dumps(self):
60
  all_files = self.api.list_repo_files(repo_id="ProjectFrozone/MongoDBDumps", repo_type="dataset")
61
- all_dirs = set([f[:f.index("/")] for f in all_files if "mongoDump_" in f])
62
- dates = sorted([date[date.index("_") + 1:] for date in all_dirs])
63
  return (all_dirs, dates)
64
 
65
  def delete_dump(self,dump_name):
 
58
 
59
  def list_dumps(self):
60
  all_files = self.api.list_repo_files(repo_id="ProjectFrozone/MongoDBDumps", repo_type="dataset")
61
+ all_dirs = [f[:f.index("/")] for f in all_files if "mongoDump_" in f]
62
+ dates = [date[date.index("_") + 1:] for date in all_dirs]
63
  return (all_dirs, dates)
64
 
65
  def delete_dump(self,dump_name):