Skip to content

Commit

Permalink
Merge pull request #10 from chiragrank/fixes-and-updates
Browse files Browse the repository at this point in the history
Change the json.loads to previous version of eval and keep the player…
  • Loading branch information
chiragrank authored Dec 20, 2021
2 parents 3095a50 + efe08c3 commit 6a7f207
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import concurrent.futures
import datetime
import json
import os
import sys
from hashlib import sha1
Expand All @@ -16,7 +15,7 @@
from rich.console import Console

ping_freq, ping_wait = 25, 60
player_limit = 2
player_limit = 1


console = Console()
Expand Down Expand Up @@ -53,7 +52,7 @@

executor = concurrent.futures.ThreadPoolExecutor(max_workers=20)

cred = credentials.Certificate(json.loads(os.environ["FIREBASE_AUTH"]))
cred = credentials.Certificate(eval(os.environ["FIREBASE_AUTH"]))
initialize_app(cred, {"databaseURL": os.environ["FIREBASE_URL"]})
ref = db.reference("/")

Expand Down

0 comments on commit 6a7f207

Please sign in to comment.