File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
- from .macros import (
2
- library_table ,
3
- )
1
+ from .macros import library_table
4
2
from .main import define_env
5
3
6
4
__all__ = [
Original file line number Diff line number Diff line change 1
- from pathlib import Path
2
1
import json
2
+ from pathlib import Path
3
3
4
4
import ruamel .yaml
5
5
from jinja2 import Environment , FileSystemLoader , select_autoescape
@@ -38,7 +38,11 @@ def library_table() -> str:
38
38
39
39
for file in activity_path .glob ("*" ):
40
40
41
- if file .is_dir () or file is None or "valueConstraints" in file .stem :
41
+ if (
42
+ file .is_dir ()
43
+ or file is None
44
+ or "valueConstraints" in file .stem
45
+ ):
42
46
continue
43
47
44
48
with open (file ) as f :
@@ -48,9 +52,14 @@ def library_table() -> str:
48
52
{
49
53
"name" : content ["@id" ],
50
54
"description" : (
51
- content ["description" ] if "description" in content else ""
55
+ content ["description" ]
56
+ if "description" in content
57
+ else ""
58
+ ),
59
+ "uri" : (
60
+ f"{ LIBRARY_URL } /tree/master/activities/"
61
+ f"{ activity_path .stem } /{ file .stem } { file .suffix } "
52
62
),
53
- "uri" : f"{ LIBRARY_URL } /tree/master/activities/{ activity_path .stem } /{ file .stem } { file .suffix } " ,
54
63
}
55
64
)
56
65
You can’t perform that action at this time.
0 commit comments