Skip to content

Commit 4a7dcd6

Browse files
Merge pull request open5e#765 from open5e/764-sort-fixture-keys-to-allow-for-easier-comparison
764 sort fixture keys to allow for easier comparison
2 parents c8f2043 + b1bd38b commit 4a7dcd6

File tree

233 files changed

+787489
-781797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+787489
-781797
lines changed

api_v2/management/commands/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def write_queryset_data(filepath, queryset, format='json'):
210210

211211
with open(output_filepath, 'w', encoding='utf-8') as f:
212212
if format=='json':
213-
serializers.serialize("json", queryset, indent=2, stream=f)
213+
serializers.serialize("json", queryset, indent=2, stream=f, sort_keys=True)
214214
if format=='csv':
215215
# Create headers:
216216
fieldnames = []

api_v2/tests/responses/TestObjects.test_weapon_with_mastery_example.approved.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@
2828
"long_range": 0.0,
2929
"name": "Longsword",
3030
"properties": [
31-
{
32-
"detail": "1d10",
33-
"property": {
34-
"name": "Versatile",
35-
"type": null,
36-
"url": "http://localhost:8000/v2/weaponproperties/srd-2024_versatile-wp/"
37-
}
38-
},
3931
{
4032
"detail": null,
4133
"property": {
4234
"name": "Sap",
4335
"type": "Mastery",
4436
"url": "http://localhost:8000/v2/weaponproperties/srd-2024_sap-mastery/"
4537
}
38+
},
39+
{
40+
"detail": "1d10",
41+
"property": {
42+
"name": "Versatile",
43+
"type": null,
44+
"url": "http://localhost:8000/v2/weaponproperties/srd-2024_versatile-wp/"
45+
}
4646
}
4747
],
4848
"range": 0.0,

data/v1/a5e/Background.json

Lines changed: 144 additions & 144 deletions
Large diffs are not rendered by default.

data/v1/a5e/Document.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[
22
{
3-
"model": "api.document",
4-
"pk": 39,
53
"fields": {
6-
"slug": "a5e",
7-
"title": "Level Up Advanced 5e",
4+
"author": "EN Publishing",
5+
"copyright": "This work includes material taken from the A5E System Reference Document (A5ESRD) by EN Publishing and available at A5ESRD.com, based on Level Up: Advanced 5th Edition, available at www.levelup5e.com. The A5ESRD is licensed under the Creative Commons Attribution 4.0 International License available at https://creativecommons.org/licenses/by/4.0/legalcode.",
86
"desc": "Advanced 5th Edition System Reference Document by EN Publishing",
97
"license": "Creative Commons Attribution 4.0 International License",
10-
"author": "EN Publishing",
8+
"license_url": "http://open5e.com/legal",
119
"organization": "EN Publishing™",
12-
"version": "1.0",
10+
"slug": "a5e",
11+
"title": "Level Up Advanced 5e",
1312
"url": "https://a5esrd.com/a5esrd",
14-
"copyright": "This work includes material taken from the A5E System Reference Document (A5ESRD) by EN Publishing and available at A5ESRD.com, based on Level Up: Advanced 5th Edition, available at www.levelup5e.com. The A5ESRD is licensed under the Creative Commons Attribution 4.0 International License available at https://creativecommons.org/licenses/by/4.0/legalcode.",
15-
"license_url": "http://open5e.com/legal",
16-
"v2_related_key": "a5e"
17-
}
13+
"v2_related_key": "a5e",
14+
"version": "1.0"
15+
},
16+
"model": "api.document",
17+
"pk": 39
1818
}
1919
]

data/v1/a5e/Feat.json

Lines changed: 354 additions & 354 deletions
Large diffs are not rendered by default.

data/v1/a5e/MagicItem.json

Lines changed: 3276 additions & 3276 deletions
Large diffs are not rendered by default.

data/v1/a5e/Spell.json

Lines changed: 7420 additions & 7420 deletions
Large diffs are not rendered by default.

data/v1/blackflag/Document.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[
22
{
3-
"model": "api.document",
4-
"pk": 46,
53
"fields": {
6-
"slug": "blackflag",
7-
"title": "Black Flag SRD",
4+
"author": "Kobold Press",
5+
"copyright": "ORC NOTICE: This product is licensed under the ORC License, located at the Library of Congress at TX 9-307-067, and available online at various locations including koboldpress.com/orclicense and others. All warranties are disclaimed as set forth therein.",
86
"desc": "Black Flag Roleplaying Reference Document v0.2, © Open Design LLC d/b/a Kobold Press",
97
"license": "ORC License",
10-
"author": "Kobold Press",
8+
"license_url": "https://paizo.com/orclicense",
119
"organization": "Kobold Press™",
12-
"version": "0.2",
10+
"slug": "blackflag",
11+
"title": "Black Flag SRD",
1312
"url": "https://koboldpress.com/black-flag-reference-document/",
14-
"copyright": "ORC NOTICE: This product is licensed under the ORC License, located at the Library of Congress at TX 9-307-067, and available online at various locations including koboldpress.com/orclicense and others. All warranties are disclaimed as set forth therein.",
15-
"license_url": "https://paizo.com/orclicense",
16-
"v2_related_key": "bfrd"
17-
}
13+
"v2_related_key": "bfrd",
14+
"version": "0.2"
15+
},
16+
"model": "api.document",
17+
"pk": 46
1818
}
1919
]

data/v1/blackflag/Monster.json

Lines changed: 14081 additions & 14081 deletions
Large diffs are not rendered by default.

data/v1/cc/Document.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[
22
{
3-
"model": "api.document",
4-
"pk": 34,
53
"fields": {
6-
"slug": "cc",
7-
"title": "Creature Codex",
4+
"author": "Wolfgang Baur, Dan Dillon, Richard Green, James Haeck, Chris Harris, Jeremy Hochhalter, James Introcaso, Chris Lockey, Shawn Merwin, and Jon Sawatsky",
5+
"copyright": "Creature Codex. © 2018 Open Design LLC; Authors Wolfgang Baur, Dan Dillon, Richard Green, James Haeck, Chris Harris, Jeremy Hochhalter, James Introcaso, Chris Lockey, Shawn Merwin, and Jon Sawatsky.",
86
"desc": "Creature Codex Open-Gaming License Content by Kobold Press",
97
"license": "Open Gaming License",
10-
"author": "Wolfgang Baur, Dan Dillon, Richard Green, James Haeck, Chris Harris, Jeremy Hochhalter, James Introcaso, Chris Lockey, Shawn Merwin, and Jon Sawatsky",
8+
"license_url": "http://open5e.com/legal",
119
"organization": "Kobold Press™",
12-
"version": "1.0",
10+
"slug": "cc",
11+
"title": "Creature Codex",
1312
"url": "https://koboldpress.com/kpstore/product/creature-codex-for-5th-edition-dnd/",
14-
"copyright": "Creature Codex. © 2018 Open Design LLC; Authors Wolfgang Baur, Dan Dillon, Richard Green, James Haeck, Chris Harris, Jeremy Hochhalter, James Introcaso, Chris Lockey, Shawn Merwin, and Jon Sawatsky.",
15-
"license_url": "http://open5e.com/legal",
16-
"v2_related_key": "ccdx"
17-
}
13+
"v2_related_key": "ccdx",
14+
"version": "1.0"
15+
},
16+
"model": "api.document",
17+
"pk": 34
1818
}
1919
]

0 commit comments

Comments
 (0)