mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-10-01 13:39:34 +02:00
gunshot detection - direction optional as defined by profile
This commit is contained in:
1 parent
57acff8ae7
commit
395ef77fe3
7 files changed
+124
-9
No files matched your search
@@ -36,8 +36,10 @@ class Uploader {
|
||||
print('Uploader: Created changeset ID: $csId');
|
||||
|
||||
// 2. create or update node
|
||||
final mergedTags = Map<String, String>.from(p.profile.tags)
|
||||
..['direction'] = p.direction.round().toString();
|
||||
final mergedTags = Map<String, String>.from(p.profile.tags);
|
||||
if (p.profile.requiresDirection) {
|
||||
mergedTags['direction'] = p.direction.round().toString();
|
||||
}
|
||||
final tagsXml = mergedTags.entries.map((e) =>
|
||||
'<tag k="${e.key}" v="${e.value}"/>').join('\n ');
|
||||
|
||||
|
||||
Reference in new issue
Block a user