mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-08-17 00:20:40 +02:00
gunshot detection - direction optional as defined by profile
This commit is contained in:
@@ -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