Browse Source

Another fixup, FLOAT -> DOUBLE in cache table.

master
Ben Kurtovic 8 years ago
parent
commit
601805d2f5
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      schema.sql
  2. +1
    -1
      templates/index.mako

+ 1
- 1
schema.sql View File

@@ -3,7 +3,7 @@ CREATE DATABASE `sXXXXX__tif`;
DROP TABLE IF EXISTS `cache`; DROP TABLE IF EXISTS `cache`;
CREATE TABLE `cache` ( CREATE TABLE `cache` (
`cache_id` INT(10) UNSIGNED NOT NULL, `cache_id` INT(10) UNSIGNED NOT NULL,
`cache_views` FLOAT NOT NULL,
`cache_views` DOUBLE NOT NULL,
`cache_time` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00', `cache_time` TIMESTAMP NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`cache_id`) PRIMARY KEY (`cache_id`)
) ENGINE=InnoDB; ) ENGINE=InnoDB;

+ 1
- 1
templates/index.mako View File

@@ -1,7 +1,7 @@
<%include file="/support/header.mako" args="title='TIF Calculator'"/> <%include file="/support/header.mako" args="title='TIF Calculator'"/>
<form action="${request.script_root}" method="get"> <form action="${request.script_root}" method="get">
% if "title" in result: % if "title" in result:
<input type="text" name="title" value="${query['page'].title if 'page' in query else query['title'] | h}" />
<input type="text" name="title" value="${result['page'].title if 'page' in result else result['title'] | h}" />
% else: % else:
<input type="text" name="title" /> <input type="text" name="title" />
% endif % endif


Loading…
Cancel
Save