ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit 467d99afac2b30cb0e0d3245138ac71f94c439a4
parent bee9d985eb9b977fc2f163c83f92262489917395
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sat, 13 Mar 2021 20:06:02 +0100

rename hafas.nim depencency to nimhafas
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1,4 +1,4 @@
-import asynchttpserver
+import httpcore
 
 type
   NimHttpResponse* = object