Skip to content

Commit 2742a8e

Browse files
committed
committed assets for seed
1 parent 2387dc9 commit 2742a8e

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ obj/
44
riderModule.iml
55
/_ReSharper.Caches/
66
settings.json
7-
appsettings.Development.json
7+
appsettings.Development.json
8+
.vs
9+
.idea

Comicvine.Database/README.md

Whitespace-only changes.

Comicvine.Seed/assets/post.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/sh
2+
3+
cat $1.json | \
4+
jq -rn --stream 'fromstream(1 | truncate_stream(inputs)) | select(.) | [.Id,.IsComment,.IsDeleted,.IsModComment,.PostNo,(.Creator|tojson),.IsEdited,.Created,.Content,.ThreadId] | @csv' > $1.csv

Comicvine.Seed/assets/thread.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/sh
2+
cat $1.json | jq -r '(.[] | [.Id,(.Thread | tojson),(.Board | tojson),.IsPinned,.IsLocked,.IsDeleted,.Type,.LastPostNo,.LastPostPage,.Created,.TotalPosts,.TotalView,(.Creator|tojson)]) | @csv' > $1.csv

0 commit comments

Comments
 (0)