Julien Lengrand-Lambert
17f047faf7
Leaders now have a http link that points to their twitter account
2013-02-19 09:50:11 +01:00
Julien Lengrand-Lambert
1e21cb7fdd
Adds # check when adding hashtag to avoid strange behaviour.
...
Next step is to add a link to the leaders twitter account in hashtag view.
2013-02-19 09:43:40 +01:00
Julien Lengrand-Lambert
9c57aab4d8
most active members are correctly displayed for nowplaying.
...
The capability seems to work correctly
2013-02-19 09:29:59 +01:00
Julien Lengrand-Lambert
df432c5ca8
Creates templatefor hashtag page.
...
Current hashtag is displayed on top of page, and sections for most active usersand latest activity are created
2013-02-19 09:02:02 +01:00
Julien Lengrand-Lambert
d2bd187453
Creates link to hashtags.
...
Tobe filled with last information about the current hashtag
2013-02-19 08:49:09 +01:00
Julien Lengrand-Lambert
9b65e6e1fa
Add hashtag now works again.
...
Something due to string manipulations again
2013-02-18 21:05:22 +01:00
Julien Lengrand-Lambert
5e956862dc
Now handles remove hashtag in a non RESTFUL way.
...
Also had to create bad string modifications to avoid having to handle special characters.
Add hashtag not working anymore
2013-02-18 21:02:43 +01:00
Julien Lengrand-Lambert
d87ba2c521
Adds real hashtags instead of dummy numbers
2013-02-18 17:08:35 +01:00
Julien Lengrand-Lambert
a1980985ce
Corrects javascript to actually create a table with several rows
2013-02-18 16:58:28 +01:00
Julien Lengrand-Lambert
3277ebdffe
In the process of adding the list of current active hashtags on web page
...
Creating a table in javascript is not a good way, as it is not rendered correctly in the browser.
Better format it server side or find a way to populate it correctly client side.
Also has to create a remove_hashtag method that takes arguments in input
2013-02-17 19:39:37 +01:00
Julien Lengrand-Lambert
2e8a425cb7
Structures the html templates a bit more and adds categories in the page.
...
NExt steps:
- List all currently tracked hashtags on main page
- Add icon to remove those hashtags next to them.
2013-02-17 18:15:48 +01:00
Julien Lengrand-Lambert
ab12c04371
Removes test file flask_stop from repo.
...
Adds method remove_hashtag to flask_app.
Next step is to generate a list of currently tracked hashtags in the main webpage
2013-02-17 17:45:52 +01:00
Julien Lengrand-Lambert
3e37007cb1
Adds flask to the list of requirements.
...
It was missing for some reason.
add_hashtag is now wokring in flask_app.
It will later have to be changed though, as the current version is evrything but RESTful.
Next step is to display a list of currently tracked hashtag in the application.
2013-02-17 17:41:31 +01:00
Julien Lengrand-Lambert
913e1fde1b
First version working in flask_stop. Add_hashtag and remove hashtags methods seem to work ok
2013-02-17 15:31:21 +01:00
Julien Lengrand-Lambert
470a56e911
Might I be on the right track? Finally ?
2013-02-15 00:32:18 +01:00
Julien Lengrand-Lambert
949d5979c0
Another typo
2013-02-05 11:33:02 +01:00
Julien Lengrand-Lambert
f27aa1794d
Corrects typo
2013-02-05 11:21:32 +01:00
Julien Lengrand-Lambert
72d0203b83
Adds added hashtag message
2013-02-05 11:17:29 +01:00
Julien Lengrand-Lambert
1594fb2901
updates flask_app
2013-02-05 11:09:01 +01:00
Julien Lengrand-Lambert
058766a0f5
statistics now works fine
2013-02-05 11:07:45 +01:00
Julien Lengrand-Lambert
004edca34a
statistics now works fine
2013-02-05 11:05:03 +01:00
Julien Lengrand-Lambert
4fec192939
First working version of hashtag adding in html. To be merged
2013-02-05 10:59:49 +01:00
Julien Lengrand-Lambert
8f7d576a8f
starts creating the form to add hashtags to track
...
Not functional yet
2013-02-05 09:57:45 +01:00
Julien Lengrand-Lambert
2311503642
Creates offline mode for the streamer to avoid connecting to Twitter APi if not needed
2013-02-05 09:20:51 +01:00
Julien Lengrand-Lambert
99bf3c3d2a
Adds new streamer_status option in data file.
...
Used to avoid connecting to twitter streaming API during web development.
2013-02-05 09:11:19 +01:00
Julien Lengrand-Lambert
2eb3d215bc
Removes timeout connexion to debug flask app
2013-02-05 08:35:11 +01:00
Julien Lengrand-Lambert
e6c7751fb8
Attempt to reduce number of database connections to the database coming from Flask
2013-02-04 19:28:55 +01:00
Julien Lengrand-Lambert
4e38990bbb
Comments unused library
2013-02-04 16:57:09 +01:00
Julien Lengrand-Lambert
f35f2006c5
Upgrades statistics pages to give number of tweets in database and members.
...
Corrects datamodel to name all tables in a singular form.
All tables have to be removed and recreated from scratch to work properly now.
2013-02-04 16:46:55 +01:00
Julien Lengrand-Lambert
374859650c
Now only counts active hashtags in webpage.
...
Also removes connection to tweeter streaming API during client development
2013-02-04 16:34:45 +01:00
Julien Lengrand-Lambert
180f30af07
Adds proper session closing and engine disposal in flask_app.
...
Adds sme missing statements in counter for deprecated methods.
2013-02-04 16:26:14 +01:00
Julien Lengrand-Lambert
e2dc517450
Updates flask_app to provide it with generic database url
2013-02-04 14:02:11 +01:00
Julien Lengrand-Lambert
440e938f57
Merges core part with web app part to avoid having multiple dependencies.
...
Also seems more logical.
2013-02-04 13:52:05 +01:00
Julien Lengrand-Lambert
d3e70ea3a0
Adds connection to database lost error found in PythonAnywhere.
...
Probably comes from them, but it should not crash everything.
2013-01-31 19:16:03 +01:00
Julien Lengrand-Lambert
f374382032
Adds imit to leader query.
...
this with addition of an index should dramatically reduce query processing time and increase performance.
Next step is probably to join all queries together and parse in Python afterwards.
TODO:
Start working on rendering again
Try to scale with a hundred hastags.
2013-01-31 16:27:09 +01:00
Julien Lengrand-Lambert
5af74eb10c
Adds another index on member table, aiming at hashtags and counts in order to generate the leaderboard faster.
2013-01-31 14:23:47 +01:00
Julien Lengrand-Lambert
b16c64e2c4
Adds file check for ini file.
...
Now exists gracefully if file is not found.
Avoids ugly errors on first launch when deploying to a new machine
2013-01-31 14:16:30 +01:00
Julien Lengrand-Lambert
b504b2acf4
Reenables tweet logging.
...
As tweets are now just logged and not crawled any more, insertion time in the database should not be an issue any more.
2013-01-31 14:05:49 +01:00
Julien Lengrand-Lambert
e3f12fb597
Modifies code so that Indexes are really taken into account.
...
Tested full night without increasing CPU load.
2013-01-30 07:51:16 +01:00
9432d2ca86
Creates indexes to enhance searches in table .
...
Also activates logging on mysql to look at queries and try to correct if
possible.
2013-01-29 16:52:42 +01:00
Julien Lengrand-Lambert
025c4a7502
Removes small bug finding duplicates where there is none.
...
Also removes print statement from data.py
2013-01-28 16:45:55 +01:00
Julien Lengrand-Lambert
e27c53db82
Stops logging tweets and directly jumps to hashtags.
...
Will se later for an efficient way to save tweets too.
Probably a way that doesnt require database.
2013-01-27 18:18:32 +01:00
Julien Lengrand-Lambert
ca833e8616
Stream and StreamSaverListener are also creating rogue connections to the database when adding/removing hashtags.
...
This had to be taken care of.
Currently is only quick fix, but a better fix should be provided soon.
2013-01-23 21:04:52 +01:00
Julien Lengrand-Lambert
50239be6c6
Uses same trick for leader as for counter.
...
Reduces the number of simultaneous database connections needed to run the full service.
2013-01-23 20:50:45 +01:00
Julien Lengrand-Lambert
a4749ca591
Attempt to solve max_user_connections issue on mysql in counter
...
Also attempts to solvedata.oauth being a string instead of a boolean
2013-01-23 16:17:16 +01:00
Julien Lengrand-Lambert
64b7ad819c
Adds session.close() that had been forgotten in counter.py
...
The number of mysql conenctions should decreqse now.
TODO:
Future thoughts to dramatically increase this : Use a database pool.
Threads would simply add new write/commit requests and only one entity actually accesses the database.
This would probably reduce the amount of problems of concurrent connections.
2013-01-23 10:00:19 +01:00
Julien Lengrand-Lambert
176e4b59ab
Removes leftover print in data.py
2013-01-23 09:34:11 +01:00
Julien Lengrand-Lambert
04badb7eff
Adds log for encoding errors in MySQL.
...
To be fixed soon
2013-01-23 09:27:12 +01:00
Julien Lengrand-Lambert
7cc5a74ecb
Separates encoding scheme for database connexion in ini file.
2013-01-23 09:25:50 +01:00
Julien Lengrand-Lambert
772806d01a
Corrects some unicode problems in datamodel
...
Adds unicode support in mysql database connexion.
Removes all try/catch in commits that were used to avoid SQLite limitations.
FIXME: There is still some problems with special characters handling in MySQL, but it doesnt cause any problem for the leaderboard printing so far.
It has to be fixed though.
TODO:
Add separate encoding parameters in basic.ini
2013-01-23 09:19:40 +01:00