mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
chore(migrations): move various files to archive
and remove erroneous comment bars
This commit is contained in:
30
Dockerfile
30
Dockerfile
@@ -1,30 +0,0 @@
|
|||||||
FROM node:14
|
|
||||||
|
|
||||||
ENV ADMIN_EMAIL admin@habitica.com
|
|
||||||
ENV EMAILS_COMMUNITY_MANAGER_EMAIL admin@habitica.com
|
|
||||||
ENV AMAZON_PAYMENTS_CLIENT_ID amzn1.application-oa2-client.68ed9e6904ef438fbc1bf86bf494056e
|
|
||||||
ENV AMAZON_PAYMENTS_SELLER_ID AMQ3SB4SG5E91
|
|
||||||
ENV AMPLITUDE_KEY e8d4c24b3d6ef3ee73eeba715023dd43
|
|
||||||
ENV BASE_URL https://habitica.com
|
|
||||||
ENV FACEBOOK_KEY 128307497299777
|
|
||||||
ENV GA_ID UA-33510635-1
|
|
||||||
ENV GOOGLE_CLIENT_ID 1035232791481-32vtplgnjnd1aufv3mcu1lthf31795fq.apps.googleusercontent.com
|
|
||||||
ENV LOGGLY_CLIENT_TOKEN ab5663bf-241f-4d14-8783-7d80db77089a
|
|
||||||
ENV NODE_ENV production
|
|
||||||
ENV STRIPE_PUB_KEY pk_85fQ0yMECHNfHTSsZoxZXlPSwSNfA
|
|
||||||
ENV APPLE_AUTH_CLIENT_ID 9Q9SMRMCNN.com.habitrpg.ios.Habitica
|
|
||||||
|
|
||||||
# Install global packages
|
|
||||||
RUN npm install -g gulp-cli mocha
|
|
||||||
|
|
||||||
# Clone Habitica repo and install dependencies
|
|
||||||
RUN mkdir -p /usr/src/habitrpg
|
|
||||||
WORKDIR /usr/src/habitrpg
|
|
||||||
RUN git clone --branch release --depth 1 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
|
|
||||||
RUN git config --global url."https://".insteadOf git://
|
|
||||||
RUN npm set unsafe-perm true
|
|
||||||
RUN npm install
|
|
||||||
|
|
||||||
# Start Habitica
|
|
||||||
EXPOSE 80 8080 36612
|
|
||||||
CMD ["node", "./website/transpiled-babel/index.js"]
|
|
||||||
@@ -61,7 +61,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
// migration: {$ne: MIGRATION_NAME},
|
migration: {$ne: MIGRATION_NAME},
|
||||||
'auth.timestamps.loggedin': {$gt: new Date('2021-01-01')},
|
'auth.timestamps.loggedin': {$gt: new Date('2021-01-01')},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
// migration: { $ne: MIGRATION_NAME },
|
migration: { $ne: MIGRATION_NAME },
|
||||||
'auth.timestamps.loggedin': { $gt: new Date('2021-08-01') },
|
'auth.timestamps.loggedin': { $gt: new Date('2021-08-01') },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
// migration: { $ne: MIGRATION_NAME },
|
migration: { $ne: MIGRATION_NAME },
|
||||||
'auth.timestamps.loggedin': { $gt: new Date('2021-08-01') },
|
'auth.timestamps.loggedin': { $gt: new Date('2021-08-01') },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
// migration: { $ne: MIGRATION_NAME },
|
migration: { $ne: MIGRATION_NAME },
|
||||||
'auth.timestamps.loggedin': { $gt: new Date('2021-08-01') },
|
'auth.timestamps.loggedin': { $gt: new Date('2021-08-01') },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
// migration: { $ne: MIGRATION_NAME },
|
migration: { $ne: MIGRATION_NAME },
|
||||||
'auth.timestamps.loggedin': { $gt: new Date('2022-01-01') },
|
'auth.timestamps.loggedin': { $gt: new Date('2022-01-01') },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
// migration: { $ne: MIGRATION_NAME },
|
migration: { $ne: MIGRATION_NAME },
|
||||||
'auth.timestamps.loggedin': { $gt: new Date('2022-01-01') },
|
'auth.timestamps.loggedin': { $gt: new Date('2022-01-01') },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ async function updateUser (user) {
|
|||||||
&& pets['Wolf-Shade']
|
&& pets['Wolf-Shade']
|
||||||
&& pets['Wolf-Skeleton']
|
&& pets['Wolf-Skeleton']
|
||||||
&& pets['Wolf-White']
|
&& pets['Wolf-White']
|
||||||
&& pets['Wolf-Zombie'] {
|
&& pets['Wolf-Zombie']) {
|
||||||
set['achievements.polarPro'] = true;
|
set['achievements.polarPro'] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -75,7 +75,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
// migration: { $ne: MIGRATION_NAME },
|
migration: { $ne: MIGRATION_NAME },
|
||||||
'auth.timestamps.loggedin': { $gt: new Date('2022-11-01') },
|
'auth.timestamps.loggedin': { $gt: new Date('2022-11-01') },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ async function updateUser (user) {
|
|||||||
|
|
||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
// migration: { $ne: MIGRATION_NAME },
|
migration: { $ne: MIGRATION_NAME },
|
||||||
'auth.timestamps.loggedin': { $gt: new Date('2023-04-15') },
|
'auth.timestamps.loggedin': { $gt: new Date('2023-04-15') },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ async function updateUser (user) {
|
|||||||
export default async function processUsers () {
|
export default async function processUsers () {
|
||||||
let query = {
|
let query = {
|
||||||
migration: {$ne: MIGRATION_NAME},
|
migration: {$ne: MIGRATION_NAME},
|
||||||
// 'auth.timestamps.loggedin': { $gt: new Date('2023-07-08') },
|
'auth.timestamps.loggedin': { $gt: new Date('2023-07-08') },
|
||||||
};
|
};
|
||||||
|
|
||||||
const fields = {
|
const fields = {
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
import csv
|
|
||||||
|
|
||||||
with open(r"/home/slappybag/Documents/SurveyScrape.csv") as f:
|
|
||||||
reader = csv.reader(f, delimiter=',', quotechar='"')
|
|
||||||
column = []
|
|
||||||
for row in reader:
|
|
||||||
if row:
|
|
||||||
column.append(row[4])
|
|
||||||
|
|
||||||
print column
|
|
||||||
Reference in New Issue
Block a user