Skip to content

Commit

Permalink
fix: prevent failing exports, actually export overwrites
Browse files Browse the repository at this point in the history
  • Loading branch information
vile committed May 29, 2024
1 parent b180d92 commit aeb8908
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def run(config: dict) -> None:
)
print(f"{guild_formatted}\n")

if config["export_results"]:
export.export_scrape_to_file(guild_formatted, server_id, "roles")
if config["export_results"]:
export.export_scrape_to_file(guild_formatted, server_id, "roles")

if config["scrape_channel_overwrite_info"]:
int_only_permissions: dict[str, int] = {
Expand All @@ -121,8 +121,10 @@ def run(config: dict) -> None:
)
print(f"{channel_overwrites}\n")

if config["export_results"]:
export.export_scrape_to_file(guild_formatted, server_id, "overwrites")
if config["export_results"]:
export.export_scrape_to_file(
channel_overwrites, server_id, "overwrites"
)

if not single_run:
scrape_again: str = input(f"{Fore.YELLOW}[?] Scrape another server? (y/n): {Fore.RESET}").lower() # fmt: skip
Expand Down

0 comments on commit aeb8908

Please sign in to comment.