Skip to content

Commit

Permalink
parse env as int
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed Feb 13, 2023
1 parent 083e4e5 commit e44da14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from cvdupdate.cvdupdate import CVDUpdate
import threading, logging, os, sys, time, http.server, socketserver, pathlib

HTTP_PORT = os.getenv("HTTP_PORT", 8000)
UPDATE_EVERY_N_HOURS = os.getenv("UPDATE_EVERY_N_HOURS", 24)
HTTP_PORT = int(os.getenv("HTTP_PORT", 8000))
UPDATE_EVERY_N_HOURS = int(os.getenv("UPDATE_EVERY_N_HOURS", 24))
DATA_DIR = os.getenv("DATA_DIR", "/data")

logging.basicConfig(
Expand Down

0 comments on commit e44da14

Please sign in to comment.