Skip to content

Commit

Permalink
Took away website on/off setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansurf committed May 27, 2024
1 parent 0d9e990 commit 6fecd9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 0 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
"server": {
"port" : 8000,
"ip_address" : "localhost"
},
"frontend": {
"website" : "True",
"port": 9000
}
}
5 changes: 0 additions & 5 deletions src/backend/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
import pandas as pd
from http.server import SimpleHTTPRequestHandler, HTTPServer

with open('../../config.json') as f:
json_config = json.load(f)

website_port = int(json_config["frontend"]["port"])

def arguments_dictionary(lat, long, city, args):
"""
Dictionary to keep cli argument values
Expand Down
5 changes: 4 additions & 1 deletion src/backend/server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
Flask Server!
"""

from flask import Flask, send_file, send_from_directory, request
import subprocess
import json
Expand All @@ -12,7 +16,6 @@
json_config = json.load(f)

port_json = int(json_config["server"]["port"])
website = bool(json_config["frontend"]["website"])

@app.route('/config.json')
def serve_config():
Expand Down

0 comments on commit 6fecd9a

Please sign in to comment.