Skip to content

Commit

Permalink
imporve py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Jan 13, 2024
1 parent 61b8908 commit 1626e9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified bindings/python/happyx/happyx.pyd
Binary file not shown.
2 changes: 1 addition & 1 deletion happyx.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

description = "Macro-oriented asynchronous web-framework written with ♥"
author = "HapticX"
version = "3.8.10"
version = "3.8.11"
license = "MIT"
srcDir = "src"
installExt = @["nim"]
Expand Down
4 changes: 2 additions & 2 deletions src/happyx/bindings/python_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var


proc processWebSocket*(py, locals: PyObject) =
discard py.eval("handler(**funcParams)", locals)
discard py.eval("func(**funcParams)", locals)


proc toPPyObject*(headers: HttpHeaders): PPyObject =
Expand Down Expand Up @@ -150,7 +150,7 @@ proc initRoute*(path, purePath: string, httpMethod: seq[string], pattern: Regex2
posArgs: @[]
)
result.locals = pyDict()
result.locals["handler"] = handler
result.locals["func"] = handler
# fetch __defaults__
if not handler.isNil:
var defaults: JsonNode
Expand Down
2 changes: 1 addition & 1 deletion src/happyx/core/constants.nim
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const
# Framework version
HpxMajor* = 3
HpxMinor* = 8
HpxPatch* = 10
HpxPatch* = 11
HpxVersion* = $HpxMajor & "." & $HpxMinor & "." & $HpxPatch


Expand Down

0 comments on commit 1626e9d

Please sign in to comment.