Skip to content

Commit

Permalink
Csv.ImportWithHeader1: change notification
Browse files Browse the repository at this point in the history
  • Loading branch information
achlipala committed Jun 24, 2021
1 parent f46c0ef commit 7f76f82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions csv.ur
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ functor ImportWithHeader1(M : sig
constraint fs ~ fsC
con cs :: {{Unit}}
val tab : sql_table (fs ++ fsC) cs
val title : string

val injs : $(map sql_injectable (fs ++ fsC))
val reads : $(map read fs)
Expand All @@ -339,7 +340,7 @@ functor ImportWithHeader1(M : sig
| Uploading
| UploadFailed
| Uploaded

type a = {UploadStatus : source uploadStatus,
PasteHere : source string,
Subwidget : source refreshed}
Expand Down Expand Up @@ -369,8 +370,8 @@ functor ImportWithHeader1(M : sig
| AjaxUpload.Found r =>
case textOfBlob r.Content of
None => error <xml>Uploaded file is not text.</xml>
| Some s => import s
| Some s => import s; ChangeWatcher.changed title

val subwidget = refreshed.Create

fun refresh a =
Expand Down
1 change: 1 addition & 0 deletions csv.urs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ functor ImportWithHeader1(M : sig
constraint fs ~ fsC
con cs :: {{Unit}}
val tab : sql_table (fs ++ fsC) cs
val title : string

val injs : $(map sql_injectable (fs ++ fsC))
val reads : $(map read fs)
Expand Down

0 comments on commit 7f76f82

Please sign in to comment.