mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
daab48aaf5
commit
e5dc89a58b
4 changed files with 26 additions and 8 deletions
|
|
@ -203,12 +203,13 @@ class DataView(BaseView):
|
|||
hash = hash_bit
|
||||
else:
|
||||
name = db_name
|
||||
# Verify the hash
|
||||
name = urllib.parse.unquote_plus(name)
|
||||
try:
|
||||
db = self.ds.databases[name]
|
||||
except KeyError:
|
||||
raise NotFound("Database not found: {}".format(name))
|
||||
|
||||
# Verify the hash
|
||||
expected = "000"
|
||||
if db.hash is not None:
|
||||
expected = db.hash[:HASH_LENGTH]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue