-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added repair option for corrupted endpoint data (master token only)
- Loading branch information
1 parent
0247f75
commit 7cf78ad
Showing
7 changed files
with
413 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
.idea | ||
.git | ||
*.log | ||
*_servers* | ||
.github | ||
LICENSE | ||
tokens.json | ||
*endpoints* | ||
beta | ||
Copy of endpoints | ||
beta_users.py | ||
tokens.json | ||
TMP | ||
__pycache__ | ||
endpoints* | ||
tokens* | ||
src/tokens.json | ||
src/Bot/config.py | ||
src/_astroidapi.log | ||
/website | ||
/web | ||
website.zip | ||
src/Bot/config.py | ||
src/astroidapi.zip | ||
src/astroidapi/beta_config.py | ||
src/Bot/config.py | ||
|
||
src/Bot/nerimity_servers/1528027692992208896.json | ||
src/tokens.json | ||
assets/517057624072519680.png | ||
src/astroidapi/test.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ | |
SDB_USER = "" | ||
SDB_PASS = "" | ||
SDB_NAMESPACE = "" | ||
SDB_DATABASE = "" | ||
SDB_DATABASE = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
def convert_keys_to_dotted(json_data, parent_key=""): | ||
dotted_dict = {} | ||
for key, value in json_data.items(): | ||
if isinstance(value, dict): | ||
dotted_dict.update(convert_keys_to_dotted(value, f"{parent_key}{key}.")) | ||
else: | ||
dotted_dict[f"{parent_key}{key}"] = value | ||
return dotted_dict | ||
|
||
|
||
print(convert_keys_to_dotted({"a": {"b": {"c": 1}}})) |