diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/web-apps/netbox/graphql-3_2_0.patch')
-rw-r--r-- | nixpkgs/pkgs/servers/web-apps/netbox/graphql-3_2_0.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/web-apps/netbox/graphql-3_2_0.patch b/nixpkgs/pkgs/servers/web-apps/netbox/graphql-3_2_0.patch new file mode 100644 index 000000000000..1e97b7d85ce0 --- /dev/null +++ b/nixpkgs/pkgs/servers/web-apps/netbox/graphql-3_2_0.patch @@ -0,0 +1,21 @@ +diff --git a/netbox/netbox/graphql/scalars.py b/netbox/netbox/graphql/scalars.py +index 7d14189dd..0a18e79d2 100644 +--- a/netbox/netbox/graphql/scalars.py ++++ b/netbox/netbox/graphql/scalars.py +@@ -1,6 +1,6 @@ + from graphene import Scalar + from graphql.language import ast +-from graphql.type.scalars import MAX_INT, MIN_INT ++from graphql.type.scalars import GRAPHQL_MAX_INT, GRAPHQL_MIN_INT + + + class BigInt(Scalar): +@@ -10,7 +10,7 @@ class BigInt(Scalar): + @staticmethod + def to_float(value): + num = int(value) +- if num > MAX_INT or num < MIN_INT: ++ if num > GRAPHQL_MAX_INT or num < GRAPHQL_MIN_INT: + return float(num) + return num + |