Why 'files.py' does not print the filenames into a table format?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Mon Jun 17 03:00:08 EDT 2013


On Mon, 17 Jun 2013 09:11:05 +0300, Νίκος wrote:

> everything work as expected but not the part when the counter of a
> filename gets increased when the file have been requested.
> 
> I don't see how since:
> 
> if filename:
> 	#update file counter
> 	cur.execute('''UPDATE files SET hits = hits + 1, host = %s, 
>       lastvisit = %s WHERE url = %s''', (host, lastvisit, filename) )


Have you read these links yet?

http://sscce.org/‎

http://www.catb.org/esr/faqs/smart-questions.html‎


They will teach you how to successfully ask for help.




-- 
Steven



More information about the Python-list mailing list