diff --git a/oeffisearch.nimble b/oeffisearch.nimble index a9094c5..5cbb28e 100644 --- a/oeffisearch.nimble +++ b/oeffisearch.nimble @@ -12,4 +12,4 @@ bin = @["oeffisearch"] # Dependencies requires "nim >= 1.0.4" -requires "https://cgit.ctu.cx/hafas.nim" +requires "https://cgit.ctu.cx/nimhafas" diff --git a/src/cache.nim b/src/cache.nim index 725399f..c9deed6 100644 --- a/src/cache.nim +++ b/src/cache.nim @@ -1,6 +1,6 @@ import tables, random, os, times, json, asyncfile, asyncdispatch import types, cache_types, utils -import hafas +import nimhafas randomize() diff --git a/src/cache_types.nim b/src/cache_types.nim index dc70faf..72e63e9 100644 --- a/src/cache_types.nim +++ b/src/cache_types.nim @@ -1,5 +1,5 @@ import tables -import hafas +import nimhafas type moreJourneysMode* = enum diff --git a/src/endpoints/journeys.nim b/src/endpoints/journeys.nim index c62c22a..18c23d2 100644 --- a/src/endpoints/journeys.nim +++ b/src/endpoints/journeys.nim @@ -1,5 +1,5 @@ import json, tables, options, asyncdispatch -import hafas +import nimhafas import ../types, ../cache when not defined(release): diff --git a/src/endpoints/moreJourneys.nim b/src/endpoints/moreJourneys.nim index 360d451..102c8fa 100644 --- a/src/endpoints/moreJourneys.nim +++ b/src/endpoints/moreJourneys.nim @@ -1,5 +1,5 @@ import json, tables, options, asyncdispatch, strutils -import hafas +import nimhafas import ../types, ../cache_types, ../cache proc moreJourneysEndpoint*(requestData: JsonNode): Future[JsonNode] {.async.} = diff --git a/src/endpoints/refreshJourney.nim b/src/endpoints/refreshJourney.nim index b05c053..ef45b4c 100644 --- a/src/endpoints/refreshJourney.nim +++ b/src/endpoints/refreshJourney.nim @@ -1,5 +1,5 @@ import json, tables, options, asyncdispatch, strutils -import hafas +import nimhafas import ../types, ../cache_types, ../cache proc refreshJourneyEndpoint*(requestData: JsonNode): Future[JsonNode] {.async.} = diff --git a/src/endpoints/suggestions.nim b/src/endpoints/suggestions.nim index 64b8461..8c4f845 100644 --- a/src/endpoints/suggestions.nim +++ b/src/endpoints/suggestions.nim @@ -1,5 +1,5 @@ import json, options, asyncdispatch -import hafas +import nimhafas const ds100Json = staticRead "../../ds100reverse.json" diff --git a/src/types.nim b/src/types.nim index 5e7eaa8..79ac142 100644 --- a/src/types.nim +++ b/src/types.nim @@ -1,4 +1,4 @@ -import asynchttpserver +import httpcore type NimHttpResponse* = object