diff --git a/archivebox.ts b/archivebox.ts index d7776ff2..bf27cac5 100644 --- a/archivebox.ts +++ b/archivebox.ts @@ -664,7 +664,6 @@ const CHROME_ARGS_DEFAULT = [ '--window-position=0,0', '--hide-scrollbars', // hide scrollbars because otherwise they show up in screenshots '--install-autogenerated-theme=169,32,85', // red border makes it easier to see which chrome window is archivebox's - '--virtual-time-budget=60000', // fast-forward all animations & timers by 60s '--autoplay-policy=no-user-gesture-required', // auto-start videos so they trigger network requests + show up in outputs '--disable-gesture-requirement-for-media-playback', '--lang=en-US,en;q=0.9', diff --git a/archivebox/core/models.py b/archivebox/core/models.py index 9359721d..883733c5 100755 --- a/archivebox/core/models.py +++ b/archivebox/core/models.py @@ -351,7 +351,7 @@ class Snapshot(ModelWithOutputDir, ModelWithConfig, ModelWithNotes, ModelWithHea def binary_set(self): """Get all Binary objects used by processes related to this snapshot.""" from archivebox.machine.models import Binary - return Binary.objects.filter(process__archiveresult__snapshot_id=self.id).distinct() + return Binary.objects.filter(process_set__archiveresult__snapshot_id=self.id).distinct() def save(self, *args, **kwargs): is_new = self._state.adding diff --git a/archivebox/machine/migrations/0001_initial.py b/archivebox/machine/migrations/0001_initial.py index f3e597e2..e032b76d 100644 --- a/archivebox/machine/migrations/0001_initial.py +++ b/archivebox/machine/migrations/0001_initial.py @@ -249,9 +249,9 @@ class Migration(migrations.Migration): ('url', models.URLField(blank=True, default=None, help_text='Connection URL (CDP endpoint, sonic server, etc.)', max_length=2048, null=True)), ('status', models.CharField(choices=[('queued', 'Queued'), ('running', 'Running'), ('exited', 'Exited')], db_index=True, default='queued', max_length=16)), ('retry_at', models.DateTimeField(blank=True, db_index=True, default=django.utils.timezone.now, help_text='When to retry this process', null=True)), - ('machine', models.ForeignKey(help_text='Machine where this process executed', on_delete=django.db.models.deletion.CASCADE, related_name='processes', to='machine.machine')), - ('binary', models.ForeignKey(blank=True, help_text='Binary used by this process', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='processes', to='machine.binary')), - ('iface', models.ForeignKey(blank=True, help_text='Network interface used by this process', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='processes', to='machine.networkinterface')), + ('machine', models.ForeignKey(help_text='Machine where this process executed', on_delete=django.db.models.deletion.CASCADE, related_name='process_set', to='machine.machine')), + ('binary', models.ForeignKey(blank=True, help_text='Binary used by this process', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='process_set', to='machine.binary')), + ('iface', models.ForeignKey(blank=True, help_text='Network interface used by this process', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='process_set', to='machine.networkinterface')), ], options={ 'verbose_name': 'Process', diff --git a/archivebox/machine/models.py b/archivebox/machine/models.py index 4c351efc..2d15bf1f 100755 --- a/archivebox/machine/models.py +++ b/archivebox/machine/models.py @@ -510,7 +510,7 @@ class Process(ModelWithHealthStats): Machine, on_delete=models.CASCADE, null=False, - related_name='processes', + related_name='process_set', help_text='Machine where this process executed' ) @@ -545,14 +545,14 @@ class Process(ModelWithHealthStats): Binary, on_delete=models.SET_NULL, null=True, blank=True, - related_name='processes', + related_name='process_set', help_text='Binary used by this process' ) iface = models.ForeignKey( NetworkInterface, on_delete=models.SET_NULL, null=True, blank=True, - related_name='processes', + related_name='process_set', help_text='Network interface used by this process' )