Closed Andy2244 closed 6 years ago
Ah i see this is not in mylist_map_converters
, how do those work anyway?
I see this in the wiki:
{int4 lid}|{int4 fid}|{int4 eid}|{int4 aid}|{int4 gid}|{int4 date}|{int2 state}|{int4 viewdate}|{str storage}|{str source}|{str other}|{int2 filestate}
Yet the date between gid-[date]-state is missing in the mylist_map_converters? How is data counted and why does this even work if there is a hole in it? I was under the impression the bitmask need to perfectly match the interpreted range or data might be corrupted?
mylist_map_converters = {
'lid': int,
'fid': int,
'eid': int,
'aid': int,
'gid': int,
'mylist_state': lambda x: mylist_state_map[x] if x else None,
'mylist_viewdate': lambda x: datetime.datetime.fromtimestamp(int(x)) if x and int(x) else None,
'mylist_storage': lambda x: x or None,
'mylist_source': lambda x: x or None,
'mylist_other': lambda x: x or None
}
Oki found it, the actual bit-map is this:
self.codestr = 'MYLIST'
self.codehead = ()
self.codetail = (
'lid',
'fid',
'eid',
'aid',
'gid',
'date',
'mylist_state',
'mylist_viewdate',
'mylist_storage',
'mylist_source',
'mylist_other')
So there is just filestate
missing at the end. So is it enough to add it there and in the mylist_map_converters? Will this be than also correctly handled by the db?
hmm, no I think we will have to alter the DB-table as well, not sure why I didn't add it from the start...
The NetIO has, the
11
filestate set, yet the generated entry has nomylist_filestate
?log: