Updated readme for flask app
Updated readme for flask app
Merge branch 'develop' of https://github.com/joelgoop/demokratikollen into develop

Conflicts:
	README.md
Replace tabs with spaces in .py files

Python coding convention is to use four spaces for indentation, not tabs.
We have to stick with one method as Python 3 disallows the mixture of
tabs and spaces for indentation.

I have changed all the tab indentations I could find with four spaces.

Sublime Text users, please check indentation settings here:
https://www.sublimetext.com/docs/3/indentation.html
Removed log file and added to ignore
Rollback a change intended for another branch

Started changing things which should be in another branch. This
is now fixed.
Initial notes on documents data structure
Merge branch 'develop' of github.com:joelgoop/demokratikollen into develop
Improve postgresify script handling of paths

Changed so that postgresify.py can be called on a file in another directory.
Merge branch 'develop' of github.com:joelgoop/demokratikollen into develop
More notes on document data
Merge branch 'exploring_doc_data' into import_data
Created iterator to go through SQL statements
Start complete reconstruction of postgresify.py

Severe problems found in "betänkande" documents, e.g. duplicate columns
in INSERT statements. The most reasonable way to correct this seems to be
a real parsing of the SQL (as opposed to just replacing with regexes).

This commit is the first where I import `sqlparse` - seems to work well,
but will require a little more work before we can import "betänkande" docs.

`sqlparse` installation is not added to Vagrant setup yet, so we have to
run  `pip install sqlparse` on the virtual machine to make it work.

To be continued...
Enable handling of some "betänkande" documents

postgresify now uses a mixture of regexes and SQL parsing. It seems that
we can successfully postgresify and execute the SQL in
http://data.riksdagen.se/dataset/dokument/bet-2010-2013.sql.zip with this code.

Added the url above to the set of documents to download and process in  init_db.sh.

Also added the sqlparsing dependency, so it should now be pip installed
with vagrant provision.

Hence, something like the following should work:
	~/app/riksdagen_sql$ bash clear_db.sh
	~/app/riksdagen_sql$ python get_data.py
	~/app/riksdagen_sql$ bash init_db.sh

It's not beautiful, but it works. To be continued...