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) {
|
||||
return _.where(tasks, function(t) {
|
||||
return _.filter(tasks, function(t) {
|
||||
return !t.completed || (t.challenge && t.challenge.id) || moment(t.dateCompleted).isAfter(moment().subtract({
|
||||
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';
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import {
|
||||
expectValidTranslationString,
|
||||
} from '../helpers/content.helper';
|
||||
import { each } from 'lodash';
|
||||
import camelCase from 'lodash.camelcase';
|
||||
import { each, camelCase } from 'lodash';
|
||||
|
||||
import { tree as allGear } from '../../common/script/content/gear';
|
||||
import backerGear from '../../common/script/content/gear/sets/special/special-backer';
|
||||
|
||||
Reference in New Issue
Block a user