Skip to content

Commit

Permalink
release: v0.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvincth committed Oct 8, 2022
1 parent d34bab7 commit 59fffc1
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 401 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: vlab
Type: Package
Title: LearnR Virtual Lab Helper
Version: 0.2.4
Version: 0.2.8
Author: elvincth
Maintainer: elvincth <[email protected]>
Description: Superset of learnR
Expand Down
8 changes: 4 additions & 4 deletions R/submission.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ sumbit_data <- function(my_data, object_id, type) {
)


print("my_body")

print(my_body)

if (!is.null(my_data$feedback$correct)) {
print("have correct")
Expand All @@ -173,6 +170,9 @@ sumbit_data <- function(my_data, object_id, type) {
}


print("my_body")

print(my_body)

my_url = paste0(api_url,
"/api/submissions/",
Expand Down Expand Up @@ -202,7 +202,7 @@ sumbit_data <- function(my_data, object_id, type) {
httr::message_for_status(res)
stop(paste("Code:", httr::status_code(res), " ", content$error, sep = " "))
}else{
show_notifcation(paste("Submit successfully.", sep = " "),
show_notifcation(paste("Your answer has been submitted.", sep = " "),
duration = 3000, type="info")

#trigger update on the question review table
Expand Down
281 changes: 8 additions & 273 deletions inst/dist/vlab_bundle.js

Large diffs are not rendered by default.

Loading

0 comments on commit 59fffc1

Please sign in to comment.