Only one UniqueID will be find
See original GitHub issueInfo
pyVersion: Python 3.10 OS: Windows 10
Describe the bug
Only the latest added entry can be found else this error accrued
pysondb.errors.db_errors.IdNotFoundError: Id '184766099262345250' does not exist in the JSON db
How to reproduce
GET Output
[
{
"id": 130978302791852290,
"name": "lol",
"state": true
},
{
"id": 184766099262345253,
"name": "lol",
"state": true
},
{
"id": 135312220569528861,
"name": "lol",
"state": true
}
]
Used Code e.g. Delete Data by ID
id = data["id"]
database=db.getDb("data.json")
#id =database.getBy({"id":id})
database.deleteById(id)
return id + " deleted"
If I delete the last one ID in this Out here 135312220569528861 this works fine but another IDs couln’t be found. Expected behavior
Find the correct ID
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Need IF VLOOKUP to search more than just the first ...
IF VLOOKUP is only searching the first occurrence of the unique ID rather than searching until it finds the unique ID that meets...
Read more >UNIQUEID() - AppSheet Help
UNIQUEID() (with no argument) generates a sequence of 8 random digits and letters suitable for use as a unique identifier within the app,...
Read more >How to Generate Unique ID in JavaScript - DEV Community
Using UUID UUID is the abbreviation of univerally unique identifier, which is an identification number to uniquely identify something. The main ...
Read more >Solved: How can I find unique IDs that match one search bu...
The id field corresponds to a device ID. I'm trying to find all the unique devices (i.e., unique id s) that are still...
Read more >c# - All Returned EmailMessages Have Same Unique Id String
Unique Ids are unique for EWS items. I ran across this question because I thought I was having the same issue. It turns...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
that was a patch for another issue
Hey . Thanks for the info,
Will get back to you.
On Sun, 13 Feb 2022, 10:42 am Dominic Schubert, @.***> wrote: