Skip to content

Commit

Permalink
Added the cluster to the data format
Browse files Browse the repository at this point in the history
  • Loading branch information
Plexi09 committed Jan 4, 2025
1 parent 8b33194 commit d39ffa8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 147 deletions.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def load_data():
content = f.read().strip()
if not content:
logger.warning("Fichier de données vide, création d'une nouvelle structure")
return {"config": {}, "stats": {}}
return {"config": {}, "stats": {}, "info": {"cluster": "main", "shard": "0"}}
return json.loads(content)
except FileNotFoundError:
logger.warning(f"Fichier {DATA_FILE} non trouvé, création d'une nouvelle structure")
Expand Down
146 changes: 0 additions & 146 deletions manual_update.sh

This file was deleted.

0 comments on commit d39ffa8

Please sign in to comment.