Commit graph

1142 commits

Author SHA1 Message Date
Adam Warner
c10abfc61e Add column "piholed" to queries table. If name is in gravity.list, return true, else, false. We can now kill off the gravity table/script 2016-10-06 10:59:12 +01:00
Adam Warner
faa204743d Delete summary entries older than 7 days. To be made configurable in future version 2016-10-04 13:49:35 +01:00
Adam Warner
6c08240ce1 add summaryDB.py to install script 2016-10-04 13:43:07 +01:00
Adam Warner
ee73af2504 Save summary log before clearing tables 2016-10-04 13:37:06 +01:00
Adam Warner
535f34f200 python script for saving summary data. For use before flushing 2016-10-04 13:33:54 +01:00
Adam Warner
95d10b3a26 Merge pull request #746 from pi-hole/ds-db
DSchaper db updates
2016-10-02 21:47:31 +01:00
Dan Schaper
9f29bef173 Remove idx creation, sqlite3 handles this automatically. 2016-10-02 11:36:00 -07:00
Dan Schaper
64b91c8b97 with open logfile for Python autohandling of closure. 2016-10-02 11:31:12 -07:00
Dan Schaper
14424939a9 Set correct db in gravity_parse. Start using with in dnsmasq 2016-10-02 11:26:40 -07:00
Dan Schaper
185efaf82e Strip out count dictionary and remove incremental operations. 2016-10-02 11:05:56 -07:00
Promofaux
9f5a4ffa47 pihole.db, not gravity. 2016-10-02 18:13:10 +01:00
Dan Schaper
9f94570fff Move PRAGMA command to first step after cursor creation. 2016-10-02 09:53:43 -07:00
Dan Schaper
e9ff14daf3 Change qt (queryTable) to gt (gravityTable) 2016-10-02 09:52:47 -07:00
Promofaux
cc3fe5363a dan dropped a line = line.rstrip(), not to worry, I picked it up for him. 2016-10-02 17:39:37 +01:00
Adam Warner
14fc90579d Merge pull request #742 from pi-hole/dschaper-gravityDB
gravityDB
2016-10-02 11:28:47 +01:00
Dan Schaper
ae9b5bdffc Comments 2016-10-01 21:16:31 -07:00
Dan Schaper
e6873e0ebd Commits squashed, lots of changes. 2016-10-01 21:13:55 -07:00
Dan Schaper
2e331cbd73 Try WAL mode 2016-10-01 20:12:56 -07:00
Dan Schaper
04b5e1a7d3 Remove extra DELETE FROM - Table has just been created, should alread by empty. 2016-10-01 20:03:50 -07:00
Promofaux
b20b617718 Add pi-hole header 2016-10-02 02:56:48 +01:00
Adam Warner
e4ae85287a Merge pull request #740 from pi-hole/db-printRemoval
Add Pi-hole Header, remove print statements
2016-10-02 02:55:53 +01:00
Dan Schaper
1f009462d1 Add Pi-hole Header, remove print statements 2016-10-01 18:50:15 -07:00
Promofaux
899bbc8d97 Merge branch 'development' into db 2016-10-01 21:50:14 +01:00
Dan Schaper
911e39ba09 Merge pull request #726 from pi-hole/DebugUpdate
DebugUpdate
2016-10-01 13:47:15 -07:00
Dan Schaper
9a421d510a Ignore comments in adlists.list section. 2016-10-01 13:16:58 -07:00
Adam Warner
3bc7172e5e Merge pull request #738 from pi-hole/updateFix
Add check at the beginning of update script to check for existence of…
2016-10-01 17:03:31 +01:00
Promofaux
1a83988e26 Add check at the beginning of update script to check for existence of local repos. If not, redirect user to run install command again. 2016-10-01 16:56:03 +01:00
Adam Warner
0d0fc2504a Merge pull request #735 from diginc/patch-1
Update README.md
2016-10-01 04:54:19 +01:00
Promofaux
48d215a53a change column name to idx 2016-10-01 02:00:58 +01:00
Promofaux
5c4cd7383b Workaround 2016-09-30 23:09:54 +01:00
Adam Hill
0d4402ee0c Update README.md
Updating the old x86 only reference on the link to my docker project.
2016-09-30 17:01:44 -05:00
Promofaux
feb0aed388 WAIT 2016-09-30 23:01:26 +01:00
Promofaux
4f41bdf246 Or typing... 2016-09-30 22:59:47 +01:00
Promofaux
34c3b96deb I never said I was an expert at merging 2016-09-30 22:58:14 +01:00
Promofaux
66d1543341 Merge branch 'development' into db 2016-09-30 22:53:39 +01:00
Adam Warner
722def9362 Merge pull request #734 from pi-hole/phpVerCheckFix
Fix the php version check command (Thanks @diginc!)
2016-09-30 22:48:39 +01:00
Promofaux
6a8bef83b3 Fix the php version check command (Thanks @diginc!) 2016-09-30 22:40:43 +01:00
Promofaux
30f24dc988 Change shebang to ensure python2 is called 2016-09-30 21:15:44 +01:00
Promofaux
f345fa6b2e Add python(2) to dependencies. May need to change fedora family 2016-09-29 23:15:58 +01:00
Promofaux
6fb0756abd change db flush to 1 minute past midnight to stop results from 23:59 appearing in stats. Once we start storing more than one day, this can be revised. 2016-09-29 22:40:18 +01:00
Promofaux
6e13941650 Add php-pdo for RHel/Centos 2016-09-29 21:35:37 +01:00
Promofaux
74a398ce34 Much needed update to chronometer. Now Curls the api.php?summaryRaw to ensure results are the same as web 2016-09-29 20:02:31 +01:00
Adam Warner
cd30a7533e add php-sqlite3/php5-sqlite dependency 2016-09-29 09:17:20 +01:00
Promofaux
04277e20ad reference that script 2016-09-28 21:16:04 +01:00
Promofaux
612e22135f add back in needed script 2016-09-28 21:14:53 +01:00
Promofaux
a074e3312c The missing bits are important. 2016-09-28 21:11:25 +01:00
Dan Schaper
a9c3e2c7ba Add log_write function. Update version_check to use logical conditionals. 2016-09-28 13:09:38 -07:00
Promofaux
646ee07979 Dropped a ' '. I'll blame @dschaper ;) 2016-09-28 21:08:08 +01:00
Promofaux
1fbf182f1b add minutely cron job to import log from log file to db 2016-09-28 21:04:14 +01:00
Promofaux
08f86001a2 remove no longer needed cron job 2016-09-28 21:01:18 +01:00