Skip to content

Commit

Permalink
Before record
Browse files Browse the repository at this point in the history
  • Loading branch information
AnshulMalik committed Jan 25, 2017
1 parent 238c749 commit 0aeebdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/services/flockService.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class Flock {
icon: 'https://icons.iconarchive.com/icons/iconsmind/outline/512/Arrow-Join-icon.png',
action: {
type: 'openWidget',
url: 'https://4040b6f1.ngrok.io/dist',
url: 'https://anshulmalik.me/qb-front/dist',
sendContext: true,
},
desktopType: "modal",
Expand Down
6 changes: 3 additions & 3 deletions questions/insert.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
var fs = require('fs');
var values = fs.readFileSync('./python', 'utf8').split('\n');
var values = fs.readFileSync('./c++', 'utf8').split('\n');
require('../lib/api/db').then(function(db) {

for(var value of values) {
if(value) {
var row = JSON.parse(value);
db.collection('questions').insertOne({
description: row.question,
language: 'python',
language: 'c++',
level: 1,
solutions: row.answers.map((txt) => { return {answer: txt, points: 5};})
solutions: row.answers.map((txt) => { return {answer: txt, points: 10};})
});
}
}
Expand Down

0 comments on commit 0aeebdb

Please sign in to comment.