Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/netbox/netbox/graphql/scalars.py b/netbox/netbox/graphql/scalars.py 2index 7d14189dd..0a18e79d2 100644 3--- a/netbox/netbox/graphql/scalars.py 4+++ b/netbox/netbox/graphql/scalars.py 5@@ -1,6 +1,6 @@ 6 from graphene import Scalar 7 from graphql.language import ast 8-from graphql.type.scalars import MAX_INT, MIN_INT 9+from graphql.type.scalars import GRAPHQL_MAX_INT, GRAPHQL_MIN_INT 10 11 12 class BigInt(Scalar): 13@@ -10,7 +10,7 @@ class BigInt(Scalar): 14 @staticmethod 15 def to_float(value): 16 num = int(value) 17- if num > MAX_INT or num < MIN_INT: 18+ if num > GRAPHQL_MAX_INT or num < GRAPHQL_MIN_INT: 19 return float(num) 20 return num 21