TechDev commited on
Commit
5f4045e
·
verified ·
1 Parent(s): 225a962

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -11,7 +11,7 @@ def home():
11
  @app.route("/get_states")
12
  def get():
13
  states = os.listdir("./states")
14
- states = sorted(states, key=lambda x: os.path.getmtime(os.path.join(directorio, x)), reverse=True)
15
  states_parse = []
16
  for s in states:
17
  states_parse.append({"id":s, "text":open(f"./states/{s}/text", "r").read()})
 
11
  @app.route("/get_states")
12
  def get():
13
  states = os.listdir("./states")
14
+ states = sorted(states, key=lambda x: os.path.getmtime(os.path.join("./states", x)), reverse=True)
15
  states_parse = []
16
  for s in states:
17
  states_parse.append({"id":s, "text":open(f"./states/{s}/text", "r").read()})