chg:capture are private

pull/912/head
Adrian Maraj 2024-04-30 15:44:19 +02:00
parent ae0c9e3449
commit f856a72cf5
2 changed files with 1 additions and 3 deletions

View File

@ -1644,6 +1644,7 @@ def simple_capture() -> str | Response | WerkzeugResponse:
flash('Invalid submission: please submit at least a URL.', 'error')
return render_template('simple_capture.html')
capture_query: CaptureSettings = {}
capture_query['listing'] = False
if request.form.get('auto_report'):
path = get_homedir() /'config'/ 'users' / (user + ".json")
if os.path.isfile(path):

View File

@ -33,9 +33,6 @@
<div class="row mb-3">
<div class="col-sm-10">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="listing" name="listing" {% if default_public %}checked="true"{% endif %}>
<label for="listing" class="form-check-label">Display results on public page</label>
</br>
<input class="form-check-input" id="auto_report" type="checkbox" name="auto_report" checked=checked>
<label for="auto_report" class="form-check-label">Auto report</label>
</div>