mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
UPdate for music tracker
This commit is contained in:
@@ -13,11 +13,11 @@ IN_COMM_Q = Queue()
|
||||
awaiting_q = []
|
||||
incoming_q = Queue()
|
||||
app = Flask(__name__)
|
||||
prepped_tracks = {
|
||||
PREPPED_TRACKS = {
|
||||
"requests" : "",
|
||||
"hits" : "",
|
||||
"hit" : "",
|
||||
"all": "",
|
||||
"prio":"",
|
||||
"priority":"",
|
||||
"jingles":""
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ def log_radio_tracks():
|
||||
logger.info(request)
|
||||
record = json.loads(request.data)
|
||||
logger.info(record)
|
||||
PREPPED_TRACKS[record[0]] = record[1]
|
||||
logger.info("DATA RECEIVED")
|
||||
return jsonify("SUCCESS")
|
||||
|
||||
@@ -145,7 +146,7 @@ def scan_incoming():
|
||||
time.sleep(1)
|
||||
|
||||
|
||||
def comm_subroutine(logger):
|
||||
def comm_subroutine():
|
||||
"""
|
||||
The `comm_subroutine` function starts multiple threads to run different tasks concurrently.
|
||||
|
||||
@@ -169,5 +170,4 @@ def comm_subroutine(logger):
|
||||
worker.join()
|
||||
|
||||
if __name__ == "__main__":
|
||||
logging_client = logging.getLogger(__name__)
|
||||
comm_subroutine(logging_client)
|
||||
comm_subroutine()
|
||||
|
||||
Reference in New Issue
Block a user