mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-10 10:40:54 +00:00
Merge pull request #494 from apitiot/2022.1.3
BF issue with projectId field when saving to database
This commit is contained in:
commit
d28834c4cb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "psychojs",
|
||||
"version": "2022.1.1",
|
||||
"version": "2022.1.3",
|
||||
"private": true,
|
||||
"description": "Helps run in-browser neuroscience, psychology, and psychophysics experiments",
|
||||
"license": "MIT",
|
||||
|
@ -18,7 +18,6 @@ import { GUI } from "./GUI.js";
|
||||
import { Logger } from "./Logger.js";
|
||||
import { ServerManager } from "./ServerManager.js";
|
||||
import { Window } from "./Window.js";
|
||||
// import {Shelf} from "../data/Shelf";
|
||||
|
||||
/**
|
||||
* <p>PsychoJS manages the lifecycle of an experiment. It initialises the PsychoJS library and its various components (e.g. the {@link ServerManager}, the {@link EventManager}), and is used by the experiment to schedule the various tasks.</p>
|
||||
@ -109,11 +108,6 @@ export class PsychoJS
|
||||
return this._browser;
|
||||
}
|
||||
|
||||
// get shelf()
|
||||
// {
|
||||
// return this._shelf;
|
||||
// }
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @public
|
||||
@ -158,9 +152,6 @@ export class PsychoJS
|
||||
// Window:
|
||||
this._window = undefined;
|
||||
|
||||
// // Shelf:
|
||||
// this._shelf = new Shelf(this);
|
||||
|
||||
// redirection URLs:
|
||||
this._cancellationUrl = undefined;
|
||||
this._completionUrl = undefined;
|
||||
|
@ -338,14 +338,14 @@ export class ExperimentHandler extends PsychObject
|
||||
else if (this._psychoJS.config.experiment.saveFormat === ExperimentHandler.SaveFormat.DATABASE)
|
||||
{
|
||||
const gitlabConfig = this._psychoJS.config.gitlab;
|
||||
const projectId = (typeof gitlabConfig !== "undefined" && typeof gitlabConfig.projectId !== "undefined") ? gitlabConfig.projectId : undefined;
|
||||
const __projectId = (typeof gitlabConfig !== "undefined" && typeof gitlabConfig.projectId !== "undefined") ? gitlabConfig.projectId : undefined;
|
||||
|
||||
let documents = [];
|
||||
|
||||
for (let r = 0; r < data.length; r++)
|
||||
{
|
||||
let doc = {
|
||||
projectId,
|
||||
__projectId,
|
||||
__experimentName: this._experimentName,
|
||||
__participant: this._participant,
|
||||
__session: this._session,
|
||||
|
@ -2,4 +2,3 @@ export * from "./ExperimentHandler.js";
|
||||
export * from "./TrialHandler.js";
|
||||
export * from "./QuestHandler.js";
|
||||
export * from "./MultiStairHandler.js";
|
||||
//export * from "./Shelf.js";
|
||||
|
Loading…
Reference in New Issue
Block a user