From 8814b3f76c3c6673fef32c8e29d9c019e5725d36 Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 2 Sep 2024 17:47:18 +1000 Subject: [PATCH] v0.60 Final tweak for topic and user count updating for last public posts --- .gossamer_forums.rb.swo | Bin 20480 -> 20480 bytes gossamer_forums.rb | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gossamer_forums.rb.swo b/.gossamer_forums.rb.swo index 29d15f273710ef8c7975f689f79f3ea98c7d2eac..382f11455759a2174aa52ddf8f916a63d7b1f71d 100644 GIT binary patch delta 2703 zcmaLYUu+ab0LSq?DM+zMTOLS-c++0PwNQ>)z&}MQV1ZN$2!)^(IktCm?b`e2?q2^0 z#5~_}Vcj$DBQs=ba(SubffJ zQRgbdD$baJhx5b}H*WKQi!px5Q^&Niw$iM23`Sq*(`ijZ7Uti*%@AN;P zy1jllJpH?}se;N`cTtpU+MrV*rswOYX<8j-paj?N)wJ(1hVwX%xA7+SU^gt7=)}`l zhA?L1%2Z7|gMRekaWtV0voI6imeD8r%e1`K$(Om90u4XjqiI8U3;XdZS}_lkpyB2e zO}m6W*o|qpQA)=c#Rtfv4_ncQFs9)O>v9RF;7rbI+FrhxSc-=b#P2NrPq=_Lun&D$ zfk&|r3-I$KP5TCiF@P=Tz-ru>$j#sgc3~SfV;v^o8c*y*l;QwhL;@SI7)_XikqMgi z4tAgeOE3r3sKQwu=24hv$2`;2qy=JBpoPFQ$l$t-vRzBD$RvKwNDeQi!_liWu z6m}+S#Dt!Xi<~7*5zFM#w#a4Ux^1Mp-4;pRvPCx6m84xZW7*cQJ%4|B{v?Ax#$Bi+ z6(V+H{19U z#UrT26>>3(bJ&OV2w@_|$j5$|*oYuX@E3Xb6PIxs2eA{&ArQp<_=QM(gby)@0hJq_ zFKf__1{@;~ALAen;AOmo7*;}MXD%vHf$L;MW#=Lin1H*~|E%i!cn>*b(2M7=6l&F5 z0uzS=B_k7tZ#?mCpfsT#sul``oP0~QbGW6-`Jufk7zzm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z3xSChLJZ*+nqj~LH`XBrqlr9&L3E=M6_~ULF@R27MJvisf}M!NAI@VEx6zGDs7(k9 zQN^MNt6{}A4)!7Lp#xsHP=fVHh6M?@zg&pxsK){9Kn^4Z;`kV};4liX6?)g&4kWT5<>pgOx9^|<|&?9T3Z}u4tVv{T~f?~$!wi%3~7Z1>ZGiXH`?$T^`(28nA8*wYPAQKswH9zKiVnmBgON{K@e?yBj?`hE@ Ijm2Zyf6KS?c>n+a diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 6367a45..a4efdef 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1948,7 +1948,7 @@ class GossamerForumsImporter < ImportScripts::Base user = User.find(user_id) current_trust_level = user.trust_level - if user.id = 2 + if user.id == 2 puts "USER ID 2, so TRUST LEVEL 4" new_trust_level = 4 end @@ -1961,7 +1961,8 @@ class GossamerForumsImporter < ImportScripts::Base puts "update_user_stats user_id #{user_id} trust_level remains at #{current_trust_level}" end rescue - puts "WARNING: Could not find or modify User with id=#{user_id}. Skipping..." + puts "WARNING: Could not find or modify User with id=#{user_id}: #{e.message} ... Skipping..." + puts e.backtrace.join("\n") # Print the full stack trace end end end