From 5df684a16001cae85fc5fd2b9a850ce044a5ea42 Mon Sep 17 00:00:00 2001 From: codl Date: Fri, 4 Aug 2017 01:51:17 +0200 Subject: [PATCH] dont crash if reported_post_count is null theres a bunch of nullable attributes that i tend to assume will never be null because im a bad programer someone remind me to fix thoses --- templates/logged_in.html | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/logged_in.html b/templates/logged_in.html index 9aeee40..be3e5f6 100644 --- a/templates/logged_in.html +++ b/templates/logged_in.html @@ -23,6 +23,7 @@ {% set post_count = g.viewer.account.post_count() %}

Currently keeping track of {{ post_count }} of your posts, roughly {{ g.viewer.account.estimate_eligible_for_delete() }} of which currently match your expiration rules.

{% if g.viewer.account.service == 'twitter' + and g.viewer.account.reported_post_count and post_count < g.viewer.account.reported_post_count * 3/4 and g.viewer.account.reported_post_count > 3200 -%}