mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Merge branch 'develop' into api-v3
This commit is contained in:
@@ -126,7 +126,7 @@ preenHistory = function(history) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
api.preenTodos = function(tasks) {
|
api.preenTodos = function(tasks) {
|
||||||
return _.where(tasks, function(t) {
|
return _.filter(tasks, function(t) {
|
||||||
return !t.completed || (t.challenge && t.challenge.id) || moment(t.dateCompleted).isAfter(moment().subtract({
|
return !t.completed || (t.challenge && t.challenge.id) || moment(t.dateCompleted).isAfter(moment().subtract({
|
||||||
days: 3
|
days: 3
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import {each, defaults, assign, capitalize, camelCase} from 'lodash';
|
import { each, defaults, assign, capitalize, camelCase } from 'lodash';
|
||||||
|
|
||||||
import i18n from '../i18n';
|
import i18n from '../i18n';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
expectValidTranslationString,
|
expectValidTranslationString,
|
||||||
} from '../helpers/content.helper';
|
} from '../helpers/content.helper';
|
||||||
import { each } from 'lodash';
|
import { each, camelCase } from 'lodash';
|
||||||
import camelCase from 'lodash.camelcase';
|
|
||||||
|
|
||||||
import { tree as allGear } from '../../common/script/content/gear';
|
import { tree as allGear } from '../../common/script/content/gear';
|
||||||
import backerGear from '../../common/script/content/gear/sets/special/special-backer';
|
import backerGear from '../../common/script/content/gear/sets/special/special-backer';
|
||||||
|
|||||||
Reference in New Issue
Block a user