How to format a datetime MySQL database field to local using strftime()

vergos.nikolas at gmail.com vergos.nikolas at gmail.com
Tue Feb 26 11:01:58 EST 2019


Actually i just found it has a directive:

dictrows: Whether or not to support dict-like access to row objects (default: True).

so i just did:

plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass='*****', dbname='counters', dictrows=False )

and now it works with indexes as integers not as strings.


More information about the Python-list mailing list