Skip to content

Commit 04c949b

Browse files
committed
rosetta-code: flush to track progress
1 parent bd76773 commit 04c949b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rosetta-code/rosetta-code.factor

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
USING: assocs combinators.short-circuit io.directories
1+
USING: assocs combinators.short-circuit io io.directories
22
io.encodings.utf8 io.files io.files.unique io.launcher kernel
33
math mediawiki.api namespaces prettyprint regexp sequences sets
44
sorting splitting strings unicode ;
@@ -102,10 +102,10 @@ MEMO: list-category ( title -- members )
102102
] with-directory ;
103103

104104
: save-all-tasks ( -- )
105-
all-tasks [ dup . save-task ] each ;
105+
all-tasks [ dup . flush save-task ] each ;
106106

107107
: save-draft-tasks ( -- )
108-
draft-tasks [ dup . save-task ] each ;
108+
draft-tasks [ dup . flush save-task ] each ;
109109

110110
: with-rosetta-code ( quot -- )
111111
[ "https://rosettacode.org/w/api.php" endpoint ] dip

0 commit comments

Comments
 (0)