mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-05 15:27:53 +10:00
feat: Patch setup_django so we can use an inmemory db in specific commands
This commit is contained in:
committed by
Cristian Vargas
parent
35a5700c73
commit
9aac09a5e1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user