Closed kuaka closed 3 years ago
I want to implement a logic that uses 'external' flag. As mentioned, external should be read-only, and if the flag is removed, than it will delete taskresult rows, and recalculate task distances. That should be enough. Otherwise it is difficult to understand why this happens. In my tests, that happened if there were less than two pilots landed out. Now I check and add a dummy pilot at min_dist to create the object. The rules are very poor about difficulty calc, it works only if two or more pilots are landed out, otherwise it is zero. But I did not find how to cope with the particular cases.
Ok, I just pushed a new branch, with a external comp logic and a function to transform to a fully functional one. Please have a try with that FAI sphere comp and let me know. Converting will recalculate distances and delete tracks, everything else should be there. I added a Region selection to task admin page, anyway task waypoints should still be there.
issue should have been fixed with https://github.com/FAI-CIVL/FAI-Airscore/commit/d4fece804e894be9ef6e5f39b98a55a0fffefd42. Also the infinite reload looping issue should have been solved with https://github.com/FAI-CIVL/FAI-Airscore/commit/5e0f81db3bac2b2601ee6c479eba273b2de68971
as mentioned in #176. In trying to delete a turpoint in task definition:
brings up the bigger issue in how importing comps handle waypoints. The ideal situation would be to take the waypoints used in all tasks in an imported comp and create a specific flying area to host them. that way tasks can be re created or modified if needed.