fix
This commit is contained in:
@@ -11,7 +11,7 @@ services:
|
|||||||
# - security_net
|
# - security_net
|
||||||
restart: "always"
|
restart: "always"
|
||||||
ports:
|
ports:
|
||||||
- "${FARM_PORT}:8000"
|
- "3333:8000"
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:18
|
image: postgres:18
|
||||||
@@ -6,4 +6,4 @@ WORKDIR /app
|
|||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
CMD ["./start_server.sh"]
|
ENTRYPOINT ["/app/start_server.sh"]
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ def post_flags():
|
|||||||
|
|
||||||
db = database.get()
|
db = database.get()
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
cursor.executemany("INSERT OR IGNORE INTO flags (flag, sploit, team, time, status) "
|
cursor.executemany("INSERT INTO flags (flag, sploit, team, time, status) "
|
||||||
"VALUES (%s, %s, %s, %s, %s)", rows)
|
"VALUES (%s, %s, %s, %s, %s)", rows)
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user