mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed crash on /:memory: page
This commit is contained in:
parent
9617e92aa8
commit
ec2db345e9
2 changed files with 7 additions and 0 deletions
|
|
@ -149,6 +149,8 @@ class ConnectedDatabase:
|
|||
|
||||
@property
|
||||
def size(self):
|
||||
if self.is_memory:
|
||||
return 0
|
||||
if self.cached_size is not None:
|
||||
return self.cached_size
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue