#'_hash3_pathfilename',
'db_bydate_addrecord',
'db_lastinfo_setrecord_ifnewer',
- #'sql_add_nmea5',
#'aivdm_record123_format',
#'aivdm_record123_length',
#'aivdm_record5_format',
return updated
-def sql_add_nmea5(strmmsi, timestamp, imo, name, callsign, type, \
+def _sql_add_nmea5(strmmsi, timestamp, imo, name, callsign, type, \
dim_bow, dim_stern, dim_port, dim_starboard, \
eta_M, eta_D, eta_h, eta_m, draught, destination, source):
''' Don't call directly '''
db_bydate_addrecord(filename, record, timestamp)
updated = db_lastinfo_setrecord_ifnewer(filename, record, timestamp)
if updated:
- sql_add_nmea5(strmmsi, timestamp, imo, name, callsign, type, \
+ _sql_add_nmea5(strmmsi, timestamp, imo, name, callsign, type, \
dim_bow, dim_stern, dim_port, dim_starboard, \
eta_M, eta_D, eta_h, eta_m, draught, destination, source)
return updated
f.write(record)
# keep the file locked during SQL updates
if updated:
- sql_add_nmea5(strmmsi, timestamp, imo, name, callsign, type, \
+ _sql_add_nmea5(strmmsi, timestamp, imo, name, callsign, type, \
dim_bow, dim_stern, dim_port, dim_starboard, \
eta_M, eta_D, eta_h, eta_m, draught, destination, source)
f.close()