rename hafas.nim depencency to nimhafas
This commit is contained in:
parent
bee9d985eb
commit
467d99afac
|
@ -12,4 +12,4 @@ bin = @["oeffisearch"]
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
requires "nim >= 1.0.4"
|
requires "nim >= 1.0.4"
|
||||||
requires "https://cgit.ctu.cx/hafas.nim"
|
requires "https://cgit.ctu.cx/nimhafas"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import tables, random, os, times, json, asyncfile, asyncdispatch
|
import tables, random, os, times, json, asyncfile, asyncdispatch
|
||||||
import types, cache_types, utils
|
import types, cache_types, utils
|
||||||
import hafas
|
import nimhafas
|
||||||
|
|
||||||
randomize()
|
randomize()
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import tables
|
import tables
|
||||||
import hafas
|
import nimhafas
|
||||||
|
|
||||||
type
|
type
|
||||||
moreJourneysMode* = enum
|
moreJourneysMode* = enum
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import json, tables, options, asyncdispatch
|
import json, tables, options, asyncdispatch
|
||||||
import hafas
|
import nimhafas
|
||||||
import ../types, ../cache
|
import ../types, ../cache
|
||||||
|
|
||||||
when not defined(release):
|
when not defined(release):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import json, tables, options, asyncdispatch, strutils
|
import json, tables, options, asyncdispatch, strutils
|
||||||
import hafas
|
import nimhafas
|
||||||
import ../types, ../cache_types, ../cache
|
import ../types, ../cache_types, ../cache
|
||||||
|
|
||||||
proc moreJourneysEndpoint*(requestData: JsonNode): Future[JsonNode] {.async.} =
|
proc moreJourneysEndpoint*(requestData: JsonNode): Future[JsonNode] {.async.} =
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import json, tables, options, asyncdispatch, strutils
|
import json, tables, options, asyncdispatch, strutils
|
||||||
import hafas
|
import nimhafas
|
||||||
import ../types, ../cache_types, ../cache
|
import ../types, ../cache_types, ../cache
|
||||||
|
|
||||||
proc refreshJourneyEndpoint*(requestData: JsonNode): Future[JsonNode] {.async.} =
|
proc refreshJourneyEndpoint*(requestData: JsonNode): Future[JsonNode] {.async.} =
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import json, options, asyncdispatch
|
import json, options, asyncdispatch
|
||||||
import hafas
|
import nimhafas
|
||||||
|
|
||||||
const ds100Json = staticRead "../../ds100reverse.json"
|
const ds100Json = staticRead "../../ds100reverse.json"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import asynchttpserver
|
import httpcore
|
||||||
|
|
||||||
type
|
type
|
||||||
NimHttpResponse* = object
|
NimHttpResponse* = object
|
||||||
|
|
Loading…
Reference in a new issue