mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-20 01:45:10 -04:00
feat: Patch setup_django so we can use an inmemory db in specific commands
This commit is contained in:
parent
35a5700c73
commit
9aac09a5e1
6 changed files with 18 additions and 13 deletions
|
@ -353,12 +353,7 @@ class Link:
|
|||
### Archive Status Helpers
|
||||
@property
|
||||
def num_outputs(self) -> int:
|
||||
try:
|
||||
return self.as_snapshot().num_outputs
|
||||
except OperationalError:
|
||||
return sum(1 for method in self.history.keys()
|
||||
for result in self.history[method]
|
||||
if result.status == 'succeeded')
|
||||
return self.as_snapshot().num_outputs
|
||||
|
||||
@property
|
||||
def num_failures(self) -> int:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue