Oren
@s40
E
I'm working on something that uses python code and Replitdb to make an api. I have to return all the keys with their values in json for each request,
Python
louisau2010 Do you mean this?
db.list().then(keys => {
let keysFiltered = keys.filter(k => k.match(//i)); // i for case insensitive, remove the i for case sensitive
});
(take from https://replit.com/talk/ask/How-to-get-every-replit-database-key-with-a-certain-value/142995)7 months ago
Bookie0 Loop through all the keys and print their value, then add them to a dict. Like:
for i in db:
print(i)
This would print every key in the database.
You can list all the keys with this (check the db tab in the sidebar):
Screen Shot 2021-10-12 at 4.22.26 PM
1 year ago
8
Scratch Comment Authentication webWeb app for scratch comment authentication
207
30
8
5
Scratch Comment Authentication appAuthenticates users on https://scratch.mit.edu
19
0
5
0
Scratch Comment PosterThis posts a comment on scratch.mit.edu
27
4
0
0
Flask testA test of flask
1
0
0