mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-20 01:40:29 +00:00
update for new DB format
This commit is contained in:
@ -157,11 +157,13 @@ struct AlgoParseState {
|
||||
if (parsedKey.s == pubkey && parsedKey.n1 == kind) {
|
||||
auto levId = lmdb::from_sv<uint64_t>(v);
|
||||
auto ev = lookupEventByLevId(txn, levId);
|
||||
PackedEventView packed(ev.buf);
|
||||
|
||||
for (const auto &tagPair : *(ev.flat_nested()->tagsFixed32())) {
|
||||
if ((char)tagPair->key() != 'p') continue;
|
||||
output.insert(std::string(sv(tagPair->val())));
|
||||
}
|
||||
packed.foreachTag([&](char tagName, std::string_view tagVal){
|
||||
if (tagName != 'p') return true;
|
||||
output.insert(std::string(tagVal));
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user