diff --git a/.gitignore b/.gitignore index 264aaa5f..88b623fa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Temp files *.swp *.pyc +*.swo # Install Dirs AILENV diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 6bf31038..a9a03fa8 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -21,8 +21,8 @@ if not os.path.exists(configfile): cfg = ConfigParser.ConfigParser() cfg.read(configfile) -max_preview_char = cfg.get("Flask", "max_preview_char") -max_preview_modal = cfg.get("Flask", "max_preview_modal") +max_preview_char = int(cfg.get("Flask", "max_preview_char")) +max_preview_modal = int(cfg.get("Flask", "max_preview_modal")) # REDIS # diff --git a/var/www/templates/show_saved_paste.html b/var/www/templates/show_saved_paste.html index 0accffb1..d8872523 100644 --- a/var/www/templates/show_saved_paste.html +++ b/var/www/templates/show_saved_paste.html @@ -12,35 +12,41 @@
Date | -Source | -Encoding | -Language | -Size (Kb) | -Mime | -Number of lines | -Max line length | -
---|---|---|---|---|---|---|---|
{{ date }} | -{{ source }} | -{{ encoding }} | -{{ language }} | -{{ size }} | -{{ mime }} | -{{ lineinfo.0 }} | -{{ lineinfo.1 }} | -
Date | +Source | +Encoding | +Language | +Size (Kb) | +Mime | +Number of lines | +Max line length | +
---|---|---|---|---|---|---|---|
{{ date }} | +{{ source }} | +{{ encoding }} | +{{ language }} | +{{ size }} | +{{ mime }} | +{{ lineinfo.0 }} | +{{ lineinfo.1 }} | +