Explorar el Código

Made it so that we store the origin IP for user-submitted articles.

master
Trey Del Bonis hace 2 años
padre
commit
d9112b0ca6
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      app.py

+ 1
- 0
app.py Ver fichero

return make_html_redirect_response('/') return make_html_redirect_response('/')


# If it all looks good then store it and report it. # If it all looks good then store it and report it.
fetched_art['srcip'] = ipaddr
await add_article(eff_date, fetched_art) await add_article(eff_date, fetched_art)
await reporthook.send_report('address %s submitted good-looking article %s' % (ipaddr, article)) await reporthook.send_report('address %s submitted good-looking article %s' % (ipaddr, article))



Cargando…
Cancelar
Guardar