Skip to content

Commit

Permalink
chore: update parser
Browse files Browse the repository at this point in the history
  • Loading branch information
bit0r1n committed Feb 22, 2024
1 parent c9a8008 commit 427ae0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

data
act
.idea

docker-compose.prod.yml
2 changes: 1 addition & 1 deletion parser/config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ switch("threads", "on")
switch("d", "ssl")
switch("d", "release")
switch("mm", "refc")
switch("d", "useStdLib")
switch("d", "useStdLib")
6 changes: 3 additions & 3 deletions parser/src/parser.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import strutils, asyncdispatch, asynchttpserver, json, tables, uri, sequtils, options
import mitso/[parser, helpers, typedefs]
import mitso/[schedule, helpers, typedefs]
import jester
import helpers, errors

var mitsoParser {.threadvar.}: Site
var mitsoParser {.threadvar.}: ScheduleSite

router parserRouter:
get "/":
Expand Down Expand Up @@ -111,7 +111,7 @@ router parserRouter:
)

proc main() {.async.} =
mitsoParser = newSite()
mitsoParser = newScheduleSite()
echo "Loading groups..."
discard await mitsoParser.loadGroups()

Expand Down

0 comments on commit 427ae0d

Please sign in to comment.