deta/deta-python

Deta is storing the wrong int

eeriemyxi opened this issue · 1 comments

        await inter.response.defer()
        print(channel.id)
        await self.db.put(channel.id, "v_channel")

it prints, 921301271112187924 but what it stores in the database is, 921301271112187900

hi @m-y-x-i , this behavior is because of this: https://docs.deta.sh/docs/base/sdk#storing-numbers

Please, store large ints as strings.